package com.atguigu.springcloud.alibaba.GlobalBlockHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Order;

/**
 * @author lixiaolong
 * @date 2020-02-25 15:32
 */
public class OrderBlockHandler {

    public static CommonResult handlerException(Order order,BlockException exception) {
        return new CommonResult(4444, "请稍后重新提交");
    }

    public static CommonResult handlerException(BlockException exception) {
        return new CommonResult(4444, "请稍后重新提交");
    }

}
